<?php

namespace IDock\Insurance\JDAL\Request;

use IDock\Insurance\JDAL\Response\EPolicyDownloadResponse;
use IDock\Visitor\EPolicyDownloadVisitor;

class EPolicyDownloadRequest extends AllJDALRequest
{
    public $route = 'document/getDocumentsUrl';

    public $requestCode = 'imagesDownloadRequest';

    protected $response = EPolicyDownloadResponse::class;

    protected $urlTip = '影像下载';

    protected $inLog = true;

    /*** @var  EPolicyDownloadVisitor $visitor */
    protected $visitor;

    public function generate(): array
    {
        $this->partnerRef = $this->visitor->argc['channelCode'] ?? '';

        return [
            'comCode' => $this->visitor->argc['comCode'] ?? '',
            'businessNo' => $this->visitor->policyNo,
            'nodeCodes' => 'UWD005_04', //电子保单
        ];
    }
}
